﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SManage.Core;
using System.Threading;

namespace SManage
{
    public partial class InitializationForm : Form
    {
        public InitializationForm() {
            InitializeComponent();
        }

        private void InitializationForm_Shown(object sender, EventArgs e) {
            var init = new Initialization();
            init.Initialize(CloseForm);
        }

        private void CloseForm() {
            BeginInvoke(new Action(
                () => {
                    MainFrm form = new MainFrm();
                    this.Close();
                }));
        }

        private void btnCancle_Click(object sender, EventArgs e) {
            this.Close();
        }
    }
}
